<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>去空格使css在一行</title>
	</head>
	<body>
		<div id="app">
			
		</div>
		<script>
			let str = `#selectAccTypeContent .accountType {font-size: 48px;font-weight: bold;margin-left: 5%;
}#selectAccTypeContent .liveChatbutton {float: right;margin-right: 5%;
}#selectAccTypeContent {height: 100vh;
}#selectAccTypeContent .indexApp {height: 100%;}#selectAccTypeContent .selectAccount {width: 100%;height: 44px;border-radius: 8px;background: rgba(32, 32, 32, 0.04);}#selectAccTypeContent .noHave {float: left;width: 49%;height: 36px;line-height: 36px;text-align: center;font-size: 16px;font-weight: bold;color: rgba( 32, 32, 32, 0.6);}#selectAccTypeContent .clinetHave {float: left;border: 1px solid #ecf4fc;width: 49%;border-radius: 10px;height: 36px;line-height: 36px;text-align: center;margin-left: 1%;background-color: rgb(255, 255, 255);font-size: 16px;color: rgb( 243, 104,16);font-weight: bold;}#selectAccTypeContent .Account-class {margin-top: 20px;padding: 20px 0px 0px 20px;background: rgba(255, 154, 67, 0.15);border-radius: 8px;box-sizing: border-box;}#selectAccTypeContent .Account-class::after {margin-top: 42px;position: absolute;border-color: transparent transparent rgba(255, 154, 67, 0.15) transparent;border-style: solid;border-width: 15px 15px 15px 15px;width: 0;height: 0;content: '';top: 0px;z-index: 2;}#selectAccTypeContent .after1::after {margin-left: 20%;}#selectAccTypeContent .after2::after {margin-left: 70%;}#selectAccTypeContent .gupiao .boxWidth {width: calc((100% - 4%)/3);display: inline-block;position: relative;}#selectAccTypeContent .gupiao .boxWidth > div {height: 90px;border: solid 1px #c0c0c0;border-radius: 12px;margin-bottom: 20px;}#selectAccTypeContent .stock {width: 29%;min-height: 180px;display: inline-block;position: relative;}#selectAccTypeContent .stockName {margin-right: 10px;margin-bottom: 20px;min-height: 62px;border-radius: 8px;border: 1px solid rgba( 243, 104, 16, 0.6);background: rgb(255, 255, 255);padding: 12px;}#selectAccTypeContent .stockChange {position: absolute;transform: translateY(50%);bottom: 0px;left: 0px;right: 0px;margin: auto;}`; 
				str=str.replace(/})/g,/\r\n/);
				console.log(str)
				document.getElementById("app").innerText=str
		</script>
	</body>
</html>